OSDN Git Service

Fix for excessive GREF use in gethostbyaddr.
authorUrs Grob <ursg@google.com>
Mon, 27 Apr 2009 10:53:09 +0000 (12:53 +0200)
committerUrs Grob <ursg@google.com>
Mon, 27 Apr 2009 10:53:09 +0000 (12:53 +0200)
commitf2931ca22c6307a8740f2ec61795f7cfa6971262
treec98e660fa963b69a50528f06a1a11647ecde3a5a
parentb8beb5f46376fe6cf2c9945eca3af7b95247188f
Fix for excessive GREF use in gethostbyaddr.

Each call to gethostbyaddr in java_net_InetAddress.cpp increases the
GREF by one. After calling the method around 1800 times the vm
crashes because of excessive global references.
libcore/luni/src/main/native/java_net_InetAddress.cpp