RFR: 8000617: It should be possible to allocate memory without the VM dying.

Keith McGuigan keith.mcguigan at oracle.com
Mon Oct 15 05:00:31 PDT 2012


On 10/15/2012 7:52 AM, David Holmes wrote:
> A boolean constant can achieve the same call-site readability. If the
> parameter is "bool abort_on_oom" then you can have
>
> const bool Alloc::ABORT_ON_OOM = true;
> const bool Alloc::RETURN_NULL = false;
>
> But this is a minor and mostly stylistic issue.

Yeah, ok, I could get behind that too.  A typedef'd enum would be a 
little more forcing that the symbolic names were used, but this isn't 
bad either.

--
- Keith


More information about the hotspot-dev mailing list