Mercurial > hg > graal-jvmci-8
comparison src/share/vm/prims/whitebox.hpp @ 17817:4abb719c5620
8038240: new WB API to get nmethod
Reviewed-by: morris, kvn
author | iignatyev |
---|---|
date | Thu, 27 Mar 2014 11:17:26 +0400 |
parents | ba2cf1fc862b |
children | 52b4284cb496 2c6ef90f030a |
comparison
equal
deleted
inserted
replaced
17816:3829d0343db0 | 17817:4abb719c5620 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
38 | 38 |
39 #define CHECK_JNI_EXCEPTION_(env, value) \ | 39 #define CHECK_JNI_EXCEPTION_(env, value) \ |
40 do { \ | 40 do { \ |
41 JavaThread* THREAD = JavaThread::thread_from_jni_environment(env); \ | 41 JavaThread* THREAD = JavaThread::thread_from_jni_environment(env); \ |
42 if (HAS_PENDING_EXCEPTION) { \ | 42 if (HAS_PENDING_EXCEPTION) { \ |
43 CLEAR_PENDING_EXCEPTION; \ | |
44 return(value); \ | 43 return(value); \ |
45 } \ | 44 } \ |
46 } while (0) | 45 } while (0) |
47 | 46 |
48 #define CHECK_JNI_EXCEPTION(env) \ | 47 #define CHECK_JNI_EXCEPTION(env) \ |
49 do { \ | 48 do { \ |
50 JavaThread* THREAD = JavaThread::thread_from_jni_environment(env); \ | 49 JavaThread* THREAD = JavaThread::thread_from_jni_environment(env); \ |
51 if (HAS_PENDING_EXCEPTION) { \ | 50 if (HAS_PENDING_EXCEPTION) { \ |
52 CLEAR_PENDING_EXCEPTION; \ | |
53 return; \ | 51 return; \ |
54 } \ | 52 } \ |
55 } while (0) | 53 } while (0) |
56 | 54 |
57 class WhiteBox : public AllStatic { | 55 class WhiteBox : public AllStatic { |