equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 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. |
42 // maxSize - represents the maximum amount of memory (in bytes) |
42 // maxSize - represents the maximum amount of memory (in bytes) |
43 // that can be used for memory management. The maximum amount of |
43 // that can be used for memory management. The maximum amount of |
44 // memory for memory management could be less than the amount of |
44 // memory for memory management could be less than the amount of |
45 // committed memory. Its value may be undefined. |
45 // committed memory. Its value may be undefined. |
46 |
46 |
47 class MemoryUsage VALUE_OBJ_CLASS_SPEC { |
47 class MemoryUsage { |
48 private: |
48 private: |
49 size_t _initSize; |
49 size_t _initSize; |
50 size_t _used; |
50 size_t _used; |
51 size_t _committed; |
51 size_t _committed; |
52 size_t _maxSize; |
52 size_t _maxSize; |