equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2016, 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. |
7 * published by the Free Software Foundation. |
1951 oop on = JNIHandles::resolve_external_guard(outputfile); |
1951 oop on = JNIHandles::resolve_external_guard(outputfile); |
1952 if (on == NULL) { |
1952 if (on == NULL) { |
1953 THROW_MSG_(vmSymbols::java_lang_NullPointerException(), |
1953 THROW_MSG_(vmSymbols::java_lang_NullPointerException(), |
1954 "Output file name cannot be null.", -1); |
1954 "Output file name cannot be null.", -1); |
1955 } |
1955 } |
1956 char* name = java_lang_String::as_platform_dependent_str(on, CHECK_(-1)); |
1956 Handle onhandle(THREAD, on); |
|
1957 char* name = java_lang_String::as_platform_dependent_str(onhandle, CHECK_(-1)); |
1957 if (name == NULL) { |
1958 if (name == NULL) { |
1958 THROW_MSG_(vmSymbols::java_lang_NullPointerException(), |
1959 THROW_MSG_(vmSymbols::java_lang_NullPointerException(), |
1959 "Output file name cannot be null.", -1); |
1960 "Output file name cannot be null.", -1); |
1960 } |
1961 } |
1961 HeapDumper dumper(live ? true : false); |
1962 HeapDumper dumper(live ? true : false); |