mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
remove debug printing
This commit is contained in:
@@ -37,7 +37,6 @@ public class SofterReference<T> {
|
||||
@SuppressWarnings("UnusedDeclaration") private static LowMemoryWatcher ourWatcher = LowMemoryWatcher.register(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
System.out.println("SofterReference.run: " + ourRegistry.size());
|
||||
for (SofterReference reference : ourRegistry.copyAndClear()) {
|
||||
reference.weaken();
|
||||
}
|
||||
|
||||
@@ -52,7 +52,6 @@ public class LowMemoryWatcher {
|
||||
((NotificationEmitter)ManagementFactory.getMemoryMXBean()).addNotificationListener(new NotificationListener() {
|
||||
public void handleNotification(Notification n, Object hb) {
|
||||
if (MemoryNotificationInfo.MEMORY_THRESHOLD_EXCEEDED.equals(n.getType()) || MemoryNotificationInfo.MEMORY_COLLECTION_THRESHOLD_EXCEEDED.equals(n.getType())) {
|
||||
System.out.println(n.getType());
|
||||
for (LowMemoryWatcher watcher : ourInstances) {
|
||||
try {
|
||||
watcher.myRunnable.run();
|
||||
|
||||
Reference in New Issue
Block a user