RFR: 8253717: Relocate stack overflow code out of thread.hpp/cpp [v3]

Thomas Stuefe stuefe at openjdk.java.net
Wed Oct 7 12:21:18 UTC 2020


On Wed, 7 Oct 2020 11:58:20 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> src/hotspot/share/runtime/stackOverflow.hpp line 75:
>> 
>>> 73:
>>> 74:   address stack_end()  const           { return _stack_end; }
>>> 75:   address stack_base() const           { assert(_stack_base != nullptr,"Sanity check"); return _stack_base; }
>> 
>> We now keep stack  base and stack size/end both here and in Thread. Could we merge this and use this as a data holder
>> for Thread?
>
> I thought about doing this but I'd rather carry the information than a pointer back to Thread.  It's only one extra
> word but doesn't invite abuse.

Okay!

-------------

PR: https://git.openjdk.java.net/jdk/pull/522


More information about the hotspot-dev mailing list