Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6649433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:46:25+00:00 2026-05-26T00:46:25+00:00

I am continuing my path to deep understanding of Java Thread. Unfortunately my Java

  • 0

I am continuing my path to deep understanding of Java Thread. Unfortunately my Java Certification didn’t cover that part, so the only way of learning is to post a series of dumb questions. With so many years of Java Development, I am sometimes wondering how much I still have to learn 🙂

In particular my attention is now with the reference handler thread.

"Reference Handler" daemon prio=10 tid=0x02da3400 nid=0xb98 in Object.wait() [0x0302f000]
   java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x1aac0320> (a java.lang.ref.Reference$Lock)
    at java.lang.Object.wait(Object.java:485)
    at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)
    - locked <0x1aac0320> (a java.lang.ref.Reference$Lock)

Now some questions are following, for some of them I know the answer, but I am not posting it, because I would like to hear someone else opinions:

  1. What is the Reference Handler thread supposed to do ?
  2. A thread dump should be considered bottom up, why does the stack trace start with locked, shouldn’t the lock statement appears at least after the thread has run ?
  3. What does “Native Method” means ?
  4. Why “Unknown Source”, in which case the thread dump cannot recall the source code ?
  5. Lastly the waiting on and locked has the same , why ?

as usual, I kindly ask to answer all the questions, so that I can mark answered.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T00:46:25+00:00Added an answer on May 26, 2026 at 12:46 am
    1. I suspect it handles running finalizers for the JVM. It’s an implementation detail and as such not specified in the JVM spec.
    2. This only means that the java.lang.ref.Reference$Lock was locked in the method mentioned in the line preceding it (i.e in ReferenceHandler.run().
    3. “Native Method” simply means that the method is implemented in native (i.e. non-Java) code (think JNI).
    4. Unknown Source only means that the .class file doesn’t contain any source code location information (at least for this specific point). This can happen either when the method is a synthetic one (doesn’t look like it here), or the class was compiled without debug information.
    5. When a thread waits on some object, then it must have locked that object at some point down the call trace, so you can’t really have a waiting on without a corresponding locked.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Continuing from my previous question , is there a comprehensive document that lists all
Any built in way to get virtual / relative path or URL from absolute
I would like to test a string containing a path to a file for
Continuing my problem from yesterday, the Silverlight datagrid I have from this issue is
Continuing my investigation of expressing F# ideas in C#, I wanted a pipe forward
Due to continuing crash problems, I'm about to uninstall and reinstall my copy of
I have a dl containing some input boxes that I clone with a bit
I build a CFG out of an arbitrary IL and want to convert that
I'm building an application which uses AutoFac 2 for DI. I've been reading that
Continuing investigation on a embedded WindowsMediaPlayer problem , i am trying to do simple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.