RFR(s): 8035117: TEST_BUG: java/rmi/server/RemoteObject/notExtending/NotExtending.java can fail with timeout
stuart.marks at oracle.com
Tue Dec 16 17:40:51 UTC 2014
Hi, any reviewers for this changeset?
On 12/12/14 12:05 PM, Stuart Marks wrote:
> Hi all,
> Please review this small fix and cleanup to this test. The old version would
> force garbage collection of an unreferenced RMI object by allocating lots and
> lots of memory until OOME is received, which takes a long time and could cause a
> timeout. The better approach is simply to unexport the object.
> I also did additional cleanups, such as not leaking the reference to 'this' from
> within the constructor, making comments and messages more concise, etc.
More information about the core-libs-dev