Replace use malloc() & friend by memory contexts for plperl and pltcl

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Replace use malloc() & friend by memory contexts for plperl and pltcl
Date: 2016-08-31 07:57:20
Message-ID: CAB7nPqSOyAsHC6jL24J1B+oK3p=yyNoFU0Vs_B6fd2kdd5g5WQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi all,

Cleanup $subject has been raised a couple of times, like one year ago here:
https://www.postgresql.org/message-id/CAB7nPqRxvq+Q66UFzD9wa5UAftYN4WAUADbjXKFrync96kf-VQ@mail.gmail.com
And more recently here while working on the NULL checks for malloc():
https://www.postgresql.org/message-id/CAB7nPqR7ozfCqc6C=2+ctCcnuehTZ-vTDQ8MMhY=BQyET0Honw@mail.gmail.com

Attached are a set of patches to replace those memory system calls by
proper memory contexts:
- 0001 does the cleanup work for pltcl
- 0002 does this cleanup for plperl

Thoughts?
--
Michael

Attachment Content-Type Size
0001-PL-Tcl-Replace-use-of-malloc-by-an-internal-memory-c.patch application/x-patch 6.9 KB
0002-PL-Perl-Replace-use-of-malloc-by-an-internal-memory-.patch application/x-patch 6.3 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Langote 2016-08-31 08:03:04 Re: Aggregate Push Down - Performing aggregation on foreign server
Previous Message Pavel Stehule 2016-08-31 07:42:14 Re: Aggregate Push Down - Performing aggregation on foreign server