Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 868394 Details for
Bug 1051245
java.lang.ref.Finalizer leak when upgrading from 1.62 to 1.66
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Reproducer
FinalizeTest.java (text/plain), 1.04 KB, created by
Andrew Dinn
on 2014-02-27 09:41:30 UTC
(
hide
)
Description:
Reproducer
Filename:
MIME Type:
Creator:
Andrew Dinn
Created:
2014-02-27 09:41:30 UTC
Size:
1.04 KB
patch
obsolete
>import java.util.HashMap; > >class FinalizeTest >{ > public static class Finalizable > { > private static int total; > private String name; > public Finalizable(String name) > { > this.name = name; > } > > public void finalize() > { > if (name.equals("0")) { > total++; > System.out.println("finalized " + total); > } > } > } > > public static void main(String[] args) > { > HashMap<String, Finalizable> map = new HashMap<String, Finalizable>(); > int counter = 0; > do { > double sine_weight = (Math.sin(counter) + 1.0) / 2.0; > int key_counter = (int)(8192 * 65535 * sine_weight); > String key = Integer.toString(key_counter); > counter++; > map.put(key, new Finalizable(key)); > if (key.equals("0")) { > try { > Thread.sleep(10); > } catch (InterruptedException ie) { > } > } > } while (true); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
adinn
: review-
Actions:
View
Attachments on
bug 1051245
:
847872
|
847884
|
847901
|
847937
|
856883
|
862524
| 868394