equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2017, 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. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
92 { |
92 { |
93 jmm_interface->GetThreadCpuTimesWithKind(env, ids, timeArray, |
93 jmm_interface->GetThreadCpuTimesWithKind(env, ids, timeArray, |
94 JNI_FALSE /* user */); |
94 JNI_FALSE /* user */); |
95 } |
95 } |
96 |
96 |
97 JNIEXPORT jlong JNICALL |
|
98 Java_sun_management_ThreadImpl_getThreadAllocatedMemory0 |
|
99 (JNIEnv *env, jclass cls, jlong tid) |
|
100 { |
|
101 return jmm_interface->GetOneThreadAllocatedMemory(env, tid); |
|
102 } |
|
103 |
|
104 JNIEXPORT void JNICALL |
97 JNIEXPORT void JNICALL |
105 Java_sun_management_ThreadImpl_getThreadAllocatedMemory1 |
98 Java_sun_management_ThreadImpl_getThreadAllocatedMemory1 |
106 (JNIEnv *env, jclass cls, jlongArray ids, jlongArray sizeArray) |
99 (JNIEnv *env, jclass cls, jlongArray ids, jlongArray sizeArray) |
107 { |
100 { |
108 jmm_interface->GetThreadAllocatedMemory(env, ids, sizeArray); |
101 jmm_interface->GetThreadAllocatedMemory(env, ids, sizeArray); |