It doesn't matter
A creature's hit points are only relevant while the creature is alive. Mechanically, the only effect of hit points is that something bad happens when you run out of them, as described in the section on Hit Points (emphasis added):
Whenever a creature takes damage, that damage is subtracted from its hit points. The loss of hit points has no effect on a creature's capabilities until the creature drops to 0 hit points.
Specifically, the two bad things that can happen upon dropping to 0 hit points are falling unconscious and dying:
When you drop to 0 hit points, you either die outright or fall unconscious, as explained in the following sections.
Obviously, if you are currently dead, then you can neither fall unconscious, nor can you die again, so hit points have no mechanical relevance while you are dead. As such, you could in theory continue to track them, but there would be no point in doing so. There are exceptions to this, such as the various Power Word spells that have an effect when a creature's current hit points are below a specific non-zero threshold. However, once again, these spells don't have any effects that would be relevant to a dead creature.
Even if you are restored to life, if still doesn't matter how many hit points you had when you died, because as far as I know, every method of restoring a creature to life also sets their hit points to a certain value either explicitly or implicitly. For example, Revivify restores the target to life with 1 hit point:
You touch a creature that has died within the last minute. That creature returns to life with 1 hit point.
Likewise for Raise Dead. Resurrection and True Resurrection both restore the target to life with all their hit points. Reincarnate doesn't specify explicitly, but it restores the creature to life in a newly created body, which does not "inherit" any of the damage sustained by the original body. In general, I am not aware of any method of raising a creature from the dead that doesn't somehow specify the new hit points of the creature upon resurrection.
As other answers have observed, the DM might rule that your corpse is an object with its own pool of hit points that determine when it is destroyed (which might cause problems for someone attempting to raise you from the dead), but if they do, these are unrelated to your hit points as a creature and have a distinct function.