< prev index next >

src/hotspot/share/include/jvm.h

Updates after review: remove status argument completely from beforeHalt

8041626: Shutdown tracing event

0 /*                                                                                                                         
1  * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.                                            
2  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.                                                           
3  *                                                                                                                         
4  * This code is free software; you can redistribute it and/or modify it                                                    
5  * under the terms of the GNU General Public License version 2 only, as                                                    
6  * published by the Free Software Foundation.  Oracle designates this                                                      
7  * particular file as subject to the "Classpath" exception as provided                                                     
8  * by Oracle in the LICENSE file that accompanied this code.                                                               
9  *                                                                                                                         
10  * This code is distributed in the hope that it will be useful, but WITHOUT                                                
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or                                                   
12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License                                                   
13  * version 2 for more details (a copy is included in the LICENSE file that                                                 
14  * accompanied this code).                                                                                                 
15  *                                                                                                                         
16  * You should have received a copy of the GNU General Public License version                                               
17  * 2 along with this work; if not, write to the Free Software Foundation,                                                  
18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.                                                           
19  *                                                                                                                         
20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA                                                 

0 /*
1  * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
2  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3  *
4  * This code is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License version 2 only, as
6  * published by the Free Software Foundation.  Oracle designates this
7  * particular file as subject to the "Classpath" exception as provided
8  * by Oracle in the LICENSE file that accompanied this code.
9  *
10  * This code is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13  * version 2 for more details (a copy is included in the LICENSE file that
14  * accompanied this code).
15  *
16  * You should have received a copy of the GNU General Public License version
17  * 2 along with this work; if not, write to the Free Software Foundation,
18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19  *
20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA

101 JVM_CurrentTimeMillis(JNIEnv *env, jclass ignored);                                                                        
102 
103 JNIEXPORT jlong JNICALL                                                                                                    
104 JVM_NanoTime(JNIEnv *env, jclass ignored);                                                                                 
105 
106 JNIEXPORT jlong JNICALL                                                                                                    
107 JVM_GetNanoTimeAdjustment(JNIEnv *env, jclass ignored, jlong offset_secs);                                                 
108 
109 JNIEXPORT void JNICALL                                                                                                     
110 JVM_ArrayCopy(JNIEnv *env, jclass ignored, jobject src, jint src_pos,                                                      
111               jobject dst, jint dst_pos, jint length);                                                                     
112 
113 JNIEXPORT jobject JNICALL                                                                                                  
114 JVM_InitProperties(JNIEnv *env, jobject p);                                                                                
115 
116 
117 /*                                                                                                                         
118  * java.lang.Runtime                                                                                                       
119  */                                                                                                                        
120 JNIEXPORT void JNICALL                                                                                                     
                                                                                                                           
                                                                                                                           
                                                                                                                           
121 JVM_Halt(jint code);                                                                                                       
122 
123 JNIEXPORT void JNICALL                                                                                                     
124 JVM_GC(void);                                                                                                              
125 
126 /* Returns the number of real-time milliseconds that have elapsed since the                                                
127  * least-recently-inspected heap object was last inspected by the garbage                                                  
128  * collector.                                                                                                              
129  *                                                                                                                         
130  * For simple stop-the-world collectors this value is just the time                                                        
131  * since the most recent collection.  For generational collectors it is the                                                
132  * time since the oldest generation was most recently collected.  Other                                                    
133  * collectors are free to return a pessimistic estimate of the elapsed time, or                                            
134  * simply the time since the last full collection was performed.                                                           
135  *                                                                                                                         
136  * Note that in the presence of reference objects, a given object that is no                                               
137  * longer strongly reachable may have to be inspected multiple times before it                                             
138  * can be reclaimed.                                                                                                       
139  */                                                                                                                        

101 JVM_CurrentTimeMillis(JNIEnv *env, jclass ignored);
102 
103 JNIEXPORT jlong JNICALL
104 JVM_NanoTime(JNIEnv *env, jclass ignored);
105 
106 JNIEXPORT jlong JNICALL
107 JVM_GetNanoTimeAdjustment(JNIEnv *env, jclass ignored, jlong offset_secs);
108 
109 JNIEXPORT void JNICALL
110 JVM_ArrayCopy(JNIEnv *env, jclass ignored, jobject src, jint src_pos,
111               jobject dst, jint dst_pos, jint length);
112 
113 JNIEXPORT jobject JNICALL
114 JVM_InitProperties(JNIEnv *env, jobject p);
115 
116 
117 /*
118  * java.lang.Runtime
119  */
120 JNIEXPORT void JNICALL
121 JVM_BeforeHalt();
122 
123 JNIEXPORT void JNICALL
124 JVM_Halt(jint code);
125 
126 JNIEXPORT void JNICALL
127 JVM_GC(void);
128 
129 /* Returns the number of real-time milliseconds that have elapsed since the
130  * least-recently-inspected heap object was last inspected by the garbage
131  * collector.
132  *
133  * For simple stop-the-world collectors this value is just the time
134  * since the most recent collection.  For generational collectors it is the
135  * time since the oldest generation was most recently collected.  Other
136  * collectors are free to return a pessimistic estimate of the elapsed time, or
137  * simply the time since the last full collection was performed.
138  *
139  * Note that in the presence of reference objects, a given object that is no
140  * longer strongly reachable may have to be inspected multiple times before it
141  * can be reclaimed.
142  */
< prev index next >