JavaLangSupport needs to call sysGetenv with null-terminated String

Description

In org.jikesrvm.classlibrary.JavaLangSupport, the getenv method uses sysCall.sysGetEnv which expects a null-terminated byte sequence. However. String.getBytes() doesn't seems to return a byte[] that is null terminated.

Environment

All

Status

Assignee

Erik Brangs

Reporter

Zixian Cai

Labels

None

Components

Fix versions

Affects versions

Priority

Medium
Configure