src/share/vm/utilities/exceptions.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File hotspot Sdiff src/share/vm/utilities

src/share/vm/utilities/exceptions.cpp

Print this page




  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "classfile/systemDictionary.hpp"
  27 #include "classfile/vmSymbols.hpp"
  28 #include "compiler/compileBroker.hpp"
  29 #include "logging/log.hpp"

  30 #include "oops/oop.inline.hpp"
  31 #include "runtime/init.hpp"
  32 #include "runtime/java.hpp"
  33 #include "runtime/javaCalls.hpp"
  34 #include "runtime/thread.inline.hpp"
  35 #include "runtime/threadCritical.hpp"
  36 #include "utilities/events.hpp"
  37 #include "utilities/exceptions.hpp"
  38 
  39 // Implementation of ThreadShadow
  40 void check_ThreadShadow() {
  41   const ByteSize offset1 = byte_offset_of(ThreadShadow, _pending_exception);
  42   const ByteSize offset2 = Thread::pending_exception_offset();
  43   if (offset1 != offset2) fatal("ThreadShadow::_pending_exception is not positioned correctly");
  44 }
  45 
  46 
  47 void ThreadShadow::set_pending_exception(oop exception, const char* file, int line) {
  48   assert(exception != NULL && exception->is_oop(), "invalid exception oop");
  49   _pending_exception = exception;




  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "classfile/systemDictionary.hpp"
  27 #include "classfile/vmSymbols.hpp"
  28 #include "compiler/compileBroker.hpp"
  29 #include "logging/log.hpp"
  30 #include "memory/resourceArea.hpp"
  31 #include "oops/oop.inline.hpp"
  32 #include "runtime/init.hpp"
  33 #include "runtime/java.hpp"
  34 #include "runtime/javaCalls.hpp"
  35 #include "runtime/thread.inline.hpp"
  36 #include "runtime/threadCritical.hpp"
  37 #include "utilities/events.hpp"
  38 #include "utilities/exceptions.hpp"
  39 
  40 // Implementation of ThreadShadow
  41 void check_ThreadShadow() {
  42   const ByteSize offset1 = byte_offset_of(ThreadShadow, _pending_exception);
  43   const ByteSize offset2 = Thread::pending_exception_offset();
  44   if (offset1 != offset2) fatal("ThreadShadow::_pending_exception is not positioned correctly");
  45 }
  46 
  47 
  48 void ThreadShadow::set_pending_exception(oop exception, const char* file, int line) {
  49   assert(exception != NULL && exception->is_oop(), "invalid exception oop");
  50   _pending_exception = exception;


src/share/vm/utilities/exceptions.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File