<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi all,<div><br></div><div>I just wanted to give a heads up that gcc catches a case inside os::create_thread in os_windows.cpp, in a switch statement that enumerates over all possible thread types. The warning states that threads of type os_thread are not handled:</div><div><br></div><div><div>src/hotspot/os/windows/os_windows.cpp: In static member function 'static bool os::create_thread(Thread*, ThreadType, size_t)':</div><div>d:/eclipse/workspace/jdk/src/hotspot/os/windows/os_windows.cpp:715:12: error: enumeration value 'os_thread' not handled in switch [-Werror=switch]</div><div>  715 |     switch (thr_type) {</div><div>         |            ^</div><div>cc1plus.exe: all warnings being treated as errors<br></div></div><div><br></div><div>I initially used to silence this warning, but since I don't know how threads of type os_thread should be handled or if this is intentional, I'm raising this to the attention of any HotSpot developers that know about this more than me in case this is a bug.</div><div><br></div><div>best regards,</div><div>Julian</div></div></div></div></div>