equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2006, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2006, 2018, 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. |
54 } |
54 } |
55 fclose(fp); |
55 fclose(fp); |
56 } |
56 } |
57 } |
57 } |
58 |
58 |
59 ~CPUinfo() { os::free((void*)_string); } |
59 ~CPUinfo() { free((void*)_string); } |
60 |
60 |
61 const char* value() const { return _string; } |
61 const char* value() const { return _string; } |
62 |
62 |
63 bool valid() const { return _string != NULL; } |
63 bool valid() const { return _string != NULL; } |
64 |
64 |