RFR: 8253742: POSIX signal code cleanup [v5]
Thomas Stuefe
stuefe at openjdk.java.net
Tue Nov 10 17:17:03 UTC 2020
On Tue, 10 Nov 2020 17:01:22 GMT, Gerard Ziemski <gziemski at openjdk.org> wrote:
> > > > Forward declaration was a new concept to me, so I had to look it up and although it was easy enough to do it for the internal c++ classes, I struggled with the forward declaring of `struct sigset_t`, but I thought I found it.
> > > > Should I also drop the forward declaration for `outputStream`, `Thread`, `OSThread`?
> > >
> > >
> > > For hotspot classes, I would leave the forward declarations in and the headers out. Current standard practice. System headers OTOH I would either include here or, somewhat better, in globalDefinitions_gcc.hpp.
> >
> >
> > Ha! It is already in globalDefinitions_gcc.hpp so neither the direct
> > include nor the forward declarations are actually needed.
>
> Many thanks Thomas & David for the lesson on the header files!
>
> If I understand it correctly, then we need to add `#include "utilities/globalDefinitions.hpp"` to signals_posix.hpp, correct?
Yes.
-------------
PR: https://git.openjdk.java.net/jdk/pull/636
More information about the hotspot-dev
mailing list