Integrated: 8257794: Zero: assert(istate->_stack_limit == istate->_thread->last_Java_sp() + 1) failed: wrong on Linux/x86_32

Jie Fu jiefu at openjdk.java.net
Wed Dec 9 09:04:32 UTC 2020


On Sat, 5 Dec 2020 03:25:10 GMT, Jie Fu <jiefu at openjdk.org> wrote:

> Hi all,
> 
> Zero debug build on Linux/x86_32 is broken due to an incorrect assert [1].
> 
> 'istate->_stack_limit' is set here [2] as 'stack->sp() - 1'.
> 'istate->_thread->last_Java_sp()' is set here [3], which is actually 'stack->sp()' according to [4].
> 
> So the correct assert should be:
>   assert(istate->_stack_limit == istate->_thread->last_Java_sp() - 1)
> 
> It would be better to fix it.
> 
> Testing:
>    - Zero fastdebug build passed on Linux/x86_32
> 
> Thanks.
> Best regards,
> Jie
> 
> [1] https://github.com/openjdk/jdk/blob/master/src/hotspot/share/interpreter/zero/bytecodeInterpreter.cpp#L422
> [2] https://github.com/openjdk/jdk/blob/master/src/hotspot/cpu/zero/zeroInterpreter_zero.cpp#L819
> [3] https://github.com/openjdk/jdk/blob/master/src/hotspot/cpu/zero/zeroInterpreter_zero.cpp#L194
> [4] https://github.com/openjdk/jdk/blob/master/src/hotspot/os_cpu/linux_zero/thread_linux_zero.hpp#L65

This pull request has now been integrated.

Changeset: df55ecd8
Author:    Jie Fu <jiefu at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/df55ecd8
Stats:     1 line in 1 file changed: 0 ins; 1 del; 0 mod

8257794: Zero: assert(istate->_stack_limit == istate->_thread->last_Java_sp() + 1) failed: wrong on Linux/x86_32

Reviewed-by: shade

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

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


More information about the hotspot-runtime-dev mailing list