summaryrefslogtreecommitdiffstats
path: root/libjava/classpath/gnu/java/lang/MainThread.java
diff options
context:
space:
mode:
authorjyasskin <jyasskin@138bc75d-0d04-0410-961f-82ee72b054a4>2012-04-12 20:59:09 +0000
committerjyasskin <jyasskin@138bc75d-0d04-0410-961f-82ee72b054a4>2012-04-12 20:59:09 +0000
commite880e0a43f5b3c5b2f3933e6ed43c8e0daacec4e (patch)
treeda264b4ef9803a0d4515217be60b6052e22a7450 /libjava/classpath/gnu/java/lang/MainThread.java
parent24fc118011487bfeecd423f23b31f61e218e226f (diff)
downloadppe42-gcc-e880e0a43f5b3c5b2f3933e6ed43c8e0daacec4e.tar.gz
ppe42-gcc-e880e0a43f5b3c5b2f3933e6ed43c8e0daacec4e.zip
Fix PR52822 (stable_partition move-assigns object to itself) by
scanning for the first value that doesn't match the predicate before starting to rearrange values. 2012-04-03 Jeffrey Yasskin <jyasskin@google.com> PR libstdc++/52822 * include/bits/stl_algo.h (__find_if_not): Expose in C++98 mode. (__find_if_not_n): Like __find_if_not, but works on and updates a counted range instead of a bounded range. (stable_partition): Guarantee !__pred(*__first) in call to __stable_partition_adaptive() or __inplace_stable_partition(). (__stable_partition_adaptive): Use new precondition to avoid moving/copying objects onto themselves. Guarantee new precondition to recursive calls. (__inplace_stable_partition): Use new precondition to simplify base case, remove __last parameter. Guarantee new precondition to recursive calls. * testsuite/25_algorithms/stable_partition/moveable.cc (test02): Test a sequence that starts with a value matching the predicate. * testsuite/25_algorithms/stable_partition/pr52822.cc: Test vectors, which have a destructive self-move-assignment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186391 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/classpath/gnu/java/lang/MainThread.java')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud