Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8300830

Remove redundant assertion in src/hotspot/share/runtime/javaCalls.cpp

XMLWordPrintable

    • b07

      src/hotspot/share/runtime/javaCalls.cpp

      JavaCallWrapper::JavaCallWrapper(const methodHandle& callee_method, Handle receiver, JavaValue* result, TRAPS) {
        JavaThread* thread = THREAD;
      ...
       ThreadStateTransition::transition_from_vm(thread, _thread_in_Java, true /* check_asyncs */);
      ...
       _thread = thread;
      ...
       assert (_thread->thread_state() != _thread_in_native, "cannot set native pc to NULL");

      The assertion is redundant as we previously set the state to _thread_in_Java.

            dholmes David Holmes
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: