RFR-8008118

Christos Zoulas christos at zoulas.com
Tue Apr 2 22:43:34 UTC 2013


On Apr 2, 11:20pm, mark.sheppard at oracle.com (Mark Sheppard) wrote:
-- Subject: Re: RFR-8008118

| Hi Martin,
|    are there any concerns that the string literal "." might be on the 
| stack and not in data segment or heap?
| In previous exchanges  the static const char *const  cwd was declared to 
| put it in read only memory.

Constant string literal end up in the text or ro data segment.

| Also, is it assured that the returned parentPathv will never be 
| de-allocated? I don't see parentPathv exposed beyond //
| that of  UNIXProcess_md.c, at least not directly.

The parent can deal with freeing it I guess.

christos



More information about the core-libs-dev mailing list