| 130 | } |
| 131 | |
| 132 | float DefaultMemoryManager::getMemoryPressure() { |
| 133 | lock_guard_t lock(this->memory_mutex); |
| 134 | memory_info ¤t = this->getCurrentMemoryInfo(); |
| 135 | if (current.lock_bytes > current.max_bytes || |
| 136 | current.lock_buffers > max_buffers) { |
| 137 | return 1.0; |
| 138 | } else { |
| 139 | return 0.0; |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | bool DefaultMemoryManager::jitTreeExceedsMemoryPressure( |
| 144 | size_t jit_tree_buffer_bytes) { |
no outgoing calls
no test coverage detected