hotspot/src/share/vm/runtime/vm_version.cpp
changeset 24424 2658d7834c6e
parent 24238 641b2b1b0163
child 25052 66e77563d9e7
equal deleted inserted replaced
24358:8528b67f6562 24424:2658d7834c6e
     1 /*
     1 /*
     2  * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1998, 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.
   115 
   115 
   116   set_version_field(&_vm_major_version, JDK_MAJOR_VERSION, "bad major version");
   116   set_version_field(&_vm_major_version, JDK_MAJOR_VERSION, "bad major version");
   117   set_version_field(&_vm_minor_version, JDK_MINOR_VERSION, "bad minor version");
   117   set_version_field(&_vm_minor_version, JDK_MINOR_VERSION, "bad minor version");
   118   set_version_field(&_vm_micro_version, JDK_MICRO_VERSION, "bad micro version");
   118   set_version_field(&_vm_micro_version, JDK_MICRO_VERSION, "bad micro version");
   119   int offset = (JDK_BUILD_NUMBER != NULL && JDK_BUILD_NUMBER[0] == 'b') ? 1 : 0;
   119   int offset = (JDK_BUILD_NUMBER != NULL && JDK_BUILD_NUMBER[0] == 'b') ? 1 : 0;
   120   set_version_field(&_vm_build_number, JDK_BUILD_NUMBER + offset,
   120   set_version_field(&_vm_build_number, &JDK_BUILD_NUMBER[offset],
   121                     "bad build number");
   121                     "bad build number");
   122 
   122 
   123   _initialized = true;
   123   _initialized = true;
   124 }
   124 }
   125 
   125