on some ECUs there is no limit !so then end point is when the valves float.
the newer ones have this limit code and is not really an issue as the max torque and rpm are way below.
floating valves on a 16v engine can be dicy.
90-95-max torque is 3000-4000 (# of valves)
max HP is at 5400 to 5500
Grand Vitara can rev to 6500 before max HP is achieved.
as they say shifting at 3000 or less , saves a ton of gas.
shift quickly and with out overloading engine, gives max mPG,
I do not know how all ECU's cuts, RPM but on my bench tester it rolls timing retarded
soom after 6000 rpm, (91 FED ecu) on some other Canadian older ECU's behave completely different it seems. (lots of ECUS world wide)
my after market ECU one can roll timing or cut injection, any way I want.
but cuting timing is safest way. some have staged cuts, timing then if it 7000 fuel is cut like a light switch.