ZedZone
|
Blog
|
Software
|
Code
projects
/
zcl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
284263b
)
Revert incorrect change to release()
author
Not Zed
<notzed@gmail.com>
Sat, 25 Jan 2020 03:10:14 +0000
(13:40 +1030)
committer
Not Zed
<notzed@gmail.com>
Sat, 25 Jan 2020 03:10:14 +0000
(13:40 +1030)
src/notzed.zcl/classes/api/Native.java
patch
|
blob
|
history
diff --git
a/src/notzed.zcl/classes/api/Native.java
b/src/notzed.zcl/classes/api/Native.java
index
5518b26
..
364d262
100644
(file)
--- a/
src/notzed.zcl/classes/api/Native.java
+++ b/
src/notzed.zcl/classes/api/Native.java
@@
-737,15
+737,13
@@
public class Native {
WeakReference<? extends Native> ref;
synchronized (map) {
- //ref = map.remove(p);
- ref = map.get(p);
+ ref = map.remove(p);
}
if (ref != null) {
if (dolog)
log().log(Level.DEBUG, () -> String.format(" force $%016x %s", Memory.toLong(p), getClass().getName()));
- ref.clear();
ref.enqueue();
}
}