Question about os::getenv()
Jeremy Manson
jeremymanson at google.com
Wed Mar 4 21:58:35 UTC 2015
It doesn't work on Windows?
Jeremy
On Wed, Mar 4, 2015 at 12:58 PM, Martin Buchholz <martinrb at google.com>
wrote:
> Why doesn't hotspot use plain C getenv ?
>
> On Wed, Mar 4, 2015 at 12:14 PM, Jeremy Manson <jeremymanson at google.com>
> wrote:
>
>> Hey folks,
>>
>> We had a request internally to make it so that JAVA_TOOL_OPTIONS could
>> accept something longer than 1024 characters. See:
>>
>> Arguments::parse_options_environment_variable(const char* name,
>> SysClassPath* scp_p, bool* scp_assembly_required_p)
>>
>> in
>>
>>
>> http://hg.openjdk.java.net/jdk9/jdk9/hotspot/file/27f0413cbea3/src/share/vm/runtime/arguments.cpp
>>
>> Would you folks be amenable to a refactoring so that getenv returns a
>> newly allocated array with the contents of the envvar, which the caller has
>> to delete?
>>
>> Jeremy
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20150304/995b589e/attachment.html>
More information about the serviceability-dev
mailing list